import { MidwayConfig } from '@midwayjs/core'
import { jwtConstants } from './constants.js'

export default {
  // use for cookie sign key, should change to your own and keep security
  keys: '1748766015008_6356',
  koa: {
    port: 8080
  },
  cors: {
    origin: '*'
  },
  jwt: {
    secret: jwtConstants.secret, // fs.readFileSync('xxxxx.key')
    expiresIn: '1d' // https://github.com/vercel/ms
  },
  mongoose: {
    dataSource: {
      default: {
        uri: 'mongodb://localhost:27017/sytadmin',
        options: {}
      }
    }
  },
  busboy: {
    mode: 'file'
  },
  baseUrl: 'http://localhost:8080' //上传文件域名
} as MidwayConfig
